﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="grid-without-ods.aspx.cs" Inherits="Dala.Samples.Grid_View.grid_without_ods" %>
    <%@ Register Src="~/Bread-Crumb-Control/bread-crumb.ascx" TagName="BreadCrumb" TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function SetActivePageIndex(index) {
            $("#indexer").find("li").each(function () {
                if ($(this).children().html() == index) {
                    $(this).addClass("active");
                }
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<uc:BreadCrumb ID="ucBreadCrumb" runat="server" BreadCrumbTitle="GridView Example" />
    <h2>
        GridView Without Object Datasource</h2>
    <br />
    <div style="width: 600px;">
        <asp:GridView ID="gridViewProduct" runat="server" CssClass="table table-bordered table-striped"
            DataMember="ProductName">
        </asp:GridView>
    </div>
    <div class="pagination">
        <ul id="indexer">
            <asp:Repeater ID="repPager" runat="server" OnItemCommand="repPager_ItemCommand">
                <ItemTemplate>
                    <li>
                        <asp:LinkButton ID="lnbPageIndex" runat="server" CommandArgument='<%# Container.DataItem.ToString() %>'><%# Container.DataItem.ToString() %></asp:LinkButton>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
</asp:Content>
